package com.yanqu.road.entity.curio;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_curio_count_data", desc = "藏宝-统计类")
public class UserCurioCountData extends DataObject {

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "类型-解锁条件类型", update = true)
    private int type;

    @FieldTypeAnnotation(desc = "子类型，职业或者其他", update = true)
    private int childType;

    @FieldTypeAnnotation(desc = "统计值")
    private long countValue;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        if(this.type != type) {
            this.type = type;
            setUpdateOption();
        }
    }

    public int getChildType() {
        return childType;
    }

    public void setChildType(int childType) {
        if(this.childType != childType) {
            this.childType = childType;
            setUpdateOption();
        }
    }

    public long getCountValue() {
        return countValue;
    }

    public void setCountValue(long countValue) {
        if(this.countValue != countValue) {
            this.countValue = countValue;
            setUpdateOption();
        }
    }
}
